package com.it.pojo;

public class book {
    //书名
    private String bookName;
    //价格
    private double price;
    //销量
    private int sales;
    // 库存
    private int Inventory;
    //类别
    private String Category;
    public book() {
    }

    public book(String bookName, double price, int sales,int Inventory,String Category) {
        this.bookName = bookName;
        this.price = price;
        this.sales = sales;
        this.Inventory = Inventory;
        this.Category = Category;
    }

    /**
     * 获取
     *
     * @return bookName
     */
    public String getBookName() {
        return bookName;
    }

    /**
     * 设置
     *
     * @param bookName
     */
    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    /**
     * 获取
     *
     * @return price
     */
    public double getPrice() {
        return price;
    }

    /**
     * 设置
     *
     * @param price
     */
    public void setPrice(double price) {
        this.price = price;
    }

    /**
     * 获取
     *
     * @return sales
     */
    public int getSales() {
        return sales;
    }

    /**
     * 设置
     *
     * @param sales
     */
    public void setSales(int sales) {
        this.sales = sales;
    }

    public int getInventory() {
        return Inventory;
    }

    public void setInventory(int inventory) {
        Inventory = inventory;
    }

    public String getCategory() {
        return Category;
    }

    public void setCategory(String category) {
        Category = category;
    }

    public String toString() {
        return "book{bookName = " + bookName + ", price = " + price + ", sales = " + sales +",category="+ Category+ "}";
    }
}
